package com.lins.wechat.dao;

import com.lins.wechat.util.RedisUtils;
import org.springframework.stereotype.Component;

/**
 * @Author linshuo
 * @Date 2023/7/26 16:57
 */

@Component
public class RedisDaoImpl implements RedisDao{

    RedisUtils u = new RedisUtils();

    @Override
    public String findWxIdByName(String name){
        return u.get(name).toString();
    }

    @Override
    public void setWxIdAndName(String name, String id) {
        u.set(name,id);
    }
}
